package com.zsc.oj.constant;

public interface PostThumbRedisConstant {

    String POST_THUMB_KEY_PREFIX = "user:thumb";

    /**
     * 设置redis的key
     * @param userId
     * @return
     */
    static String getUserKey(long userId){
        return String.format("%s:%s",POST_THUMB_KEY_PREFIX , userId);
    }
}
